<?php

// +----------------------------------------------------------------------

// | ThinkPHP [ WE CAN DO IT JUST THINK ]

// +----------------------------------------------------------------------

// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.

// +----------------------------------------------------------------------

// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )

// +----------------------------------------------------------------------

// | Author: liu21st <liu21st@gmail.com>

// +----------------------------------------------------------------------

use think\facade\Route;



//后台
Route::group(function (){
    Route::rule('miniapp/qrcodeImg','admin.Miniapp/qrcodeImg');
    //不需要登录
    Route::rule('login','Login/login');
});

Route::group(function (){
    Route::group(function (){
        Route::rule('home','Login/home');
        //会员
        Route::rule('getMemberInfo','member.Member/info');
        Route::rule('addMember','member.Member/add');
        Route::rule('getLevelList','member.Member/levelList');
        Route::rule('getMemberList','member.Member/list');
        //点单
        Route::rule('regionList','table.Table/regionList');
        Route::rule('tableList','table.Table/tableList');
        Route::rule('onTable','table.Table/onTable');
        Route::rule('categoryList','goods.Goods/categoryList');
        Route::rule('goodsList','goods.Goods/index');
        Route::rule('tableInfo','table.Table/tableInfo');
        Route::rule('updateTable','table.Table/updateTable');
        Route::rule('changeTable','table.Table/changeTable');
        Route::rule('jointTable','table.Table/jointTable');
        Route::rule('revokeOnTable','table.Table/revokeOnTable');
        Route::rule('revokeJointTable','table.Table/revokeJointTable');
        Route::rule('liantaiOrder','table.Table/liantaiOrder');
        //绑定websocket信息
        Route::rule('socketbind','Login/socketbind');
        //购物车
        Route::rule('cartSave','goods.Cart/save');
        Route::rule('cartList','goods.Cart/list');
        Route::rule('cartDel','goods.Cart/del');
        Route::rule('cartGive','goods.Cart/give');
        Route::rule('updatePrice','goods.Cart/updatePrice');
        Route::rule('updateNum','goods.Cart/updateNum');
        Route::rule('editNum','goods.Cart/editNum');
        Route::rule('cartDelAll','goods.Cart/delAll');
        Route::rule('cartRevokeGive','goods.Cart/revokeGive');
        Route::rule('updateFit','goods.Cart/updateFit');
        Route::rule('allReturn','goods.Cart/allReturn');
        //原因
        Route::rule('getReasonList','Reason/index');
        Route::rule('addReason','Reason/add');
        Route::rule('delReason','Reason/del');

        Route::rule('orderSetCashShow','OrderSet/show');

        Route::rule('thirdSettlementList','goods.ThirdSettlement/list');
        //结账
        Route::rule('guaOrder','Order/guaOrder');
        Route::rule('payOrder','Order/payOrder');
        Route::rule('confirmOrder','Order/confirmOrder');
        Route::rule('getPayOrder','Order/getPayOrder');
        Route::rule('settleInfoList','Order/settleInfoList');
        Route::rule('sendSms','Order/sendSms');
        Route::rule('verifySmsCode','Order/verifySmsCode');
        Route::rule('guaBill','Order/guaBill');
        Route::rule('deductMoney','Order/deductMoney');
        Route::rule('deductPlatformMoney','Order/deductPlatformMoney');
        Route::rule('orderMoney','Order/money');
        Route::rule('addThirdSettle','Order/addThirdSettle');
        Route::rule('refundPlatformMoney','Order/refundPlatformMoney');
        Route::rule('delSettleInfo','Order/delSettleInfo');
        Route::rule('reduceMoney','Order/reduceMoney');
        Route::rule('intvalMoney','Order/intvalMoney');
        Route::rule('freeMoney','Order/freeMoney');
        Route::rule('completeOrder','Order/complete');
    });







})->middleware([\app\beautiful\middleware\Base::class,\app\cash\middleware\AdminCheck::class]);

